﻿using System.Collections.ObjectModel;
using Coniometer.Model;
using Prism.Mvvm;

namespace Coniometer.ViewModels
{
    public class HelpCenterPageViewModel : BindableBase
    {
        private ObservableCollection<AnswerDataModel> _answerCollection = new ObservableCollection<AnswerDataModel>();

        public ObservableCollection<AnswerDataModel> AnswerCollection
        {
            get => _answerCollection;
            set
            {
                _answerCollection = value;
                RaisePropertyChanged();
            }
        }

        public HelpCenterPageViewModel()
        {
            for (var i = 1; i < 5; i++)
            {
                var dataModel = new AnswerDataModel
                {
                    Index = i,
                    Question = "问题问题问题问题问题问题问题问题问题问题问题问题问题问题问题问题问题问题问题",
                    AnswerType = "文字",
                    Answer = "解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答解答"
                };
                AnswerCollection.Add(dataModel);
            }
        }
    }
}